home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 11 / AMUG BBS in a Box Volume XI (April 1994) (MacWizards).iso / Files / Tele / A / AnalyzeCL Utils.sit / CLAnalysis Stacks.sit / BBS Stats / card_2388.txt < prev    next >
Encoding:
Text File  |  1989-05-23  |  6.4 KB  |  234 lines

  1. -- card: 2388 from stack: in
  2. -- bmap block id: 11326
  3. -- flags: 0000
  4. -- background id: 2052
  5. -- name: Top
  6. ----- HyperTalk script -----
  7. on closeCard
  8.   hide card field "help"
  9.   hide card field "info"
  10.   pass closeCard
  11. end closeCard
  12.  
  13.  
  14.  
  15. -- part 1 (button)
  16. -- low flags: 00
  17. -- high flags: 8003
  18. -- rect: left=39 top=144 right=166 bottom=139
  19. -- title width / last selected line: 0
  20. -- icon id / first selected line: 0 / 0
  21. -- text alignment: 1
  22. -- font id: 0
  23. -- text size: 12
  24. -- style flags: 0
  25. -- line height: 16
  26. -- part name: Weekly
  27. ----- HyperTalk script -----
  28. on mouseUp
  29.   push card
  30.   go to first card of background "Weekly"
  31. end mouseUp
  32.  
  33.  
  34.  
  35.  
  36. -- part 2 (button)
  37. -- low flags: 00
  38. -- high flags: 8003
  39. -- rect: left=202 top=144 right=166 bottom=302
  40. -- title width / last selected line: 0
  41. -- icon id / first selected line: 0 / 0
  42. -- text alignment: 1
  43. -- font id: 0
  44. -- text size: 12
  45. -- style flags: 0
  46. -- line height: 16
  47. -- part name: Monthly
  48. ----- HyperTalk script -----
  49. on mouseUp
  50.   push card
  51.   go card 1 of bkgnd "Monthly"
  52. end mouseUp
  53.  
  54.  
  55.  
  56.  
  57. -- part 3 (button)
  58. -- low flags: 00
  59. -- high flags: 8003
  60. -- rect: left=373 top=144 right=166 bottom=473
  61. -- title width / last selected line: 0
  62. -- icon id / first selected line: 0 / 0
  63. -- text alignment: 1
  64. -- font id: 0
  65. -- text size: 12
  66. -- style flags: 0
  67. -- line height: 16
  68. -- part name: Daily
  69. ----- HyperTalk script -----
  70. on mouseUp
  71.   push card
  72.   go card 1 of bkgnd "Daily"
  73. end mouseUp
  74.  
  75.  
  76.  
  77.  
  78. -- part 4 (button)
  79. -- low flags: 00
  80. -- high flags: 8003
  81. -- rect: left=115 top=207 right=229 bottom=215
  82. -- title width / last selected line: 0
  83. -- icon id / first selected line: 0 / 0
  84. -- text alignment: 1
  85. -- font id: 0
  86. -- text size: 12
  87. -- style flags: 0
  88. -- line height: 16
  89. -- part name: Day of Week
  90. ----- HyperTalk script -----
  91. on mouseUp
  92.   push card
  93.   go card 1 of bkgnd "Day Of Week"
  94. end mouseUp
  95.  
  96.  
  97.  
  98.  
  99. -- part 5 (button)
  100. -- low flags: 00
  101. -- high flags: 8003
  102. -- rect: left=292 top=207 right=229 bottom=392
  103. -- title width / last selected line: 0
  104. -- icon id / first selected line: 0 / 0
  105. -- text alignment: 1
  106. -- font id: 0
  107. -- text size: 12
  108. -- style flags: 0
  109. -- line height: 16
  110. -- part name: Hourly
  111. ----- HyperTalk script -----
  112. on mouseUp
  113.   push card
  114.   go card 1 of bkgnd "Hourly"
  115. end mouseUp
  116.  
  117.  
  118.  
  119.  
  120. -- part 6 (button)
  121. -- low flags: 00
  122. -- high flags: 0000
  123. -- rect: left=23 top=25 right=63 bottom=56
  124. -- title width / last selected line: 0
  125. -- icon id / first selected line: 11045 / 11045
  126. -- text alignment: 1
  127. -- font id: 0
  128. -- text size: 12
  129. -- style flags: 0
  130. -- line height: 16
  131. -- part name: Home
  132. ----- HyperTalk script -----
  133. on mouseUp
  134.   go home
  135. end mouseUp
  136.  
  137.  
  138.  
  139. -- part 15 (button)
  140. -- low flags: 00
  141. -- high flags: 0000
  142. -- rect: left=356 top=32 right=67 bottom=396
  143. -- title width / last selected line: 0
  144. -- icon id / first selected line: 2507 / 2507
  145. -- text alignment: 1
  146. -- font id: 0
  147. -- text size: 12
  148. -- style flags: 0
  149. -- line height: 16
  150. -- part name: 
  151. ----- HyperTalk script -----
  152. on mouseUp
  153.   show card field "help"
  154. end mouseUp
  155.  
  156.  
  157.  
  158. -- part 16 (field)
  159. -- low flags: 81
  160. -- high flags: 2004
  161. -- rect: left=23 top=69 right=321 bottom=491
  162. -- title width / last selected line: 0
  163. -- icon id / first selected line: 0 / 0
  164. -- text alignment: 0
  165. -- font id: 3
  166. -- text size: 10
  167. -- style flags: 0
  168. -- line height: 13
  169. -- part name: Info
  170. ----- HyperTalk script -----
  171. on mouseUp
  172.   hide the target
  173. end mouseUp
  174.  
  175.  
  176.  
  177. -- part 17 (button)
  178. -- low flags: 00
  179. -- high flags: 0000
  180. -- rect: left=411 top=32 right=67 bottom=451
  181. -- title width / last selected line: 0
  182. -- icon id / first selected line: 2478 / 2478
  183. -- text alignment: 1
  184. -- font id: 0
  185. -- text size: 12
  186. -- style flags: 0
  187. -- line height: 16
  188. -- part name: 
  189. ----- HyperTalk script -----
  190. on mouseUp
  191.   show card field "info"
  192.   hide card field "help"
  193. end mouseUp
  194.  
  195.  
  196.  
  197. -- part 18 (field)
  198. -- low flags: 81
  199. -- high flags: 2004
  200. -- rect: left=23 top=69 right=321 bottom=491
  201. -- title width / last selected line: 0
  202. -- icon id / first selected line: 0 / 0
  203. -- text alignment: 0
  204. -- font id: 3
  205. -- text size: 10
  206. -- style flags: 0
  207. -- line height: 13
  208. -- part name: Help
  209. ----- HyperTalk script -----
  210. on mouseUp
  211.   hide the target
  212. end mouseUp
  213.  
  214.  
  215.  
  216. -- part contents for card part 18
  217. ----- text -----
  218. This stack treats weekly, monthly, hourly, daily, and day of week statistics separately.  In order to process the data, the 'CL Analysis' file, which is output by AnalyzeCL, must be split into separate tab-delineated files named Weekly Stats, Monthly Stats, and so forth.  The utility 'Split_CL_Analysis' will do exactly that, or it can be done using text editors with macro capability, or with simple text editors and InfoMaker.  These files should be in a single folder.
  219.  
  220. After selecting a data set (click on one of the buttons on this card), you should 'Load Data'.  If necessary, you will be prompted for the path where the 'Stats' files reside.  If all goes well, you will see the new data cards being read.  The arrow buttons within these cards perform their customary function.  The 'Graph' button will take yoy to a card that will graph the data.  This card has its own help button.   The data cards must be present for the graph function to work, but they may be deleted (using the Delete Cards button) after a graph is drawn.  The graph will remain until it is Cleared or another graph is attempted.
  221.  
  222.  
  223.  
  224.  
  225. -- part contents for card part 16
  226. ----- text -----
  227. Feel free to use this stack and its scripts, although I (Tom Konantz) would appreciate credit if the graph-related scripts are used in other stacks.  Users are encouraged to modify this stack and share the results, as there are some areas that could be improved. 
  228.  
  229. The stack was designed to maximize reusability, so many scripts use either the background or the card name  as parameters .  The fields within the data cards also use common names. Finally, the button names on the graph background the same as the field names.   All these items may be changed to taste, but be aware of the potential for problems.
  230.  
  231. The Y axis graph labeling is a tricky problem, since rounding errors almost always occurs somewhere.  I wanted to have the Y tick mark exactly even with a data point corresponding to the label on that mark, so the Y position is shifted rather than using evenly spaced marks and rounding the label.  For example, if the max Y is 37 and there are 15 divisions, some of the marks will not coincide with an integer value.  Because of this, the Y axis labels will not be evenly spaced in all cases.  
  232.  
  233. This stack was developed on a Mac II; it may be a touch on the slow side on slower machines. Additional 'lock screens' may help performance, although you won't be able to watch it work.
  234.